﻿using System;
using Game.Utilities.Log;
using Game.Utilities.Session;
using VTCeBank.SSO.Utils;


namespace Web.Server
{

    public partial class _default : System.Web.UI.Page
    {
        protected string LoginUrl = SSOHelper.URLLogin;
        protected string LogoutUrl = SSOHelper.URLLogout;
        protected string isSign = "false";
        
        protected void Page_Load(object sender, EventArgs e)
        {
          
            if (AccountSession.AccountID > 0)
            {
                isSign = "true";
            }

            LoadData();
            if (IsPostBack) return;

        }

        private void LoadData()
        {
            try
            {
                if (AccountSession.AccountID > 0)
                {
                    isSign = "true";
                    hddAcc.Value = AccountSession.AccountID + "|" + AccountSession.AccountName+"|"+AccountSession.AccountTotalBalance;
                        //lưu các giá trị cho Header chung

                }
            }
            catch (Exception ex)
            {
                NLogManager.PublishException(ex);
            }
        }
    }
}